package com.itheima.oop.Test01;

public class Teacher {
    private String name;
    private String gender;
    private int age;
    private String id;
    private String subject;

    public Teacher() {
    }

    public Teacher(String id, String name, String gender, int age, String subject) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.subject = subject;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public void show() {
        System.out.println("ID:" + id + "\t姓名:" + name + "\t性别:" + gender + "\t年龄:" + age + "\t科目:" + subject);
    }
}
